WARNING: Logic error! This program has a bug, which means we need to fix it!

RULE: We can use wait commands to pause the stage between actions.

  • Click Run and watch the kitten quickly flip up and down. The kitten moves so fast you can't see it flip!
  • Debug this program by adding a Wait command in the correct place and setting it to wait for 1 second.


To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("flowers") sprite = codesters.Sprite("kitten") sprite.flip_up_down() sprite.flip_up_down()
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)